cmake_minimum_required(VERSION 3.20)
project(case25)

add_library(func1 SHARED func1.cpp)
target_compile_definitions(func1 PRIVATE func1_EXPORTS)

add_library(func2 STATIC func2.cpp)

add_library(func3 STATIC func3.cpp)

target_link_libraries(func3 PRIVATE func2)

add_executable(main main.cpp)
target_link_libraries(main func1 func3)
